<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 500px;
            height: 500px;
            background-color: pink;
            background-image: url(https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=2500590696,3135431391&fm=26&gp=0.jpg);
            background-repeat: no-repeat;
            /* 如果方位名字只写一个另外一个默认为center */
            /* background-position: right; */
            /* x 坐标 y坐标 */
            /* background-position: 10px 20px; */
            /* 混搭 */
            background-position: 10px center;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>